import request from '@/utils/request';

// 查询设备列表
export function listinfoClass(query) {
  return request({
    url: '/iot/infoClass/list',
    method: 'get',
    params: query
  });
}


// 新增节目分类
export function addinfoClass(data) {
    return request({
      url: '/iot/infoClass',
      method: 'post',
      data
    });
  }

// 修改节目分类
export function UpdateinfoClass(data) {
    return request({
      url: '/iot/infoClass',
      method: 'put',
      data
    });
  }
// 删除节目分类
export function delInfoClass(id) {
    return request({
      url: '/iot/infoClass/' + id,
      method: 'delete'
    });
  }    
  